package com.sp.scmdb.bean;

import java.util.List;

import com.sp.scmdb.entity.DutyLevel;

public class DutyBean extends PageBean {
	
	/** 职务ID */
	private String id;

	/** 职务名称 */
	private String name;
	
	/** 职务级别 */
	private String dutyLevel;
	
	/** 职务级别列表 */
	private List<DutyLevel> listDutyLevel;
	
	/**
	 * 职务ID取得
	 * @return 职务ID
	 */
	public String getId() {
		return id;
	}

	/**
	 * 职务ID设置
	 * @param id
	 */
	public void setId(String id) {
		this.id = id;
	}

	/**
	 * 职务名称取得
	 * @return 职务名称
	 */
	public String getName() {
		return name;
	}

	/**
	 * 职务名称设置
	 * @param deptName
	 */
	public void setName(String deptName) {
		this.name = deptName;
	}

	public String getDutyLevel() {
		return dutyLevel;
	}

	public void setDutyLevel(String dutyLevel) {
		this.dutyLevel = dutyLevel;
	}

	public List<DutyLevel> getListDutyLevel() {
		return listDutyLevel;
	}

	public void setListDutyLevel(List<DutyLevel> listDutyLevel) {
		this.listDutyLevel = listDutyLevel;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((name == null) ? 0 : name.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		DutyBean other = (DutyBean) obj;
		if (name == null) {
			if (other.name != null)
				return false;
		} else if (!name.equals(other.name))
			return false;
		return true;
	}
}
